package com.z4.nordicchinese;

import android.os.Bundle;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.view.Menu;
import android.webkit.WebView;
import android.webkit.WebViewClient;

public class MainActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        loadContent();
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
    
    @SuppressLint("SetJavaScriptEnabled")
	private void loadContent() {
        setContentView(R.layout.activity_main);
        WebView webView;
		webView = (WebView) findViewById(R.id.webView);
		webView.setWebViewClient(new WebViewClient());		
		webView.getSettings().setJavaScriptEnabled(true);

		webView.loadUrl("http://www.oursushi.se/wordpress/");
	}

}
